package com.skyable.common.api.third;

import com.skyable.common.common.ResponseResult;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

/**
 * @author GaoYuan
 * @title: ThirdApi
 * @projectName spring-cloud-demo
 * @description: TODO
 * @date 2021/3/2111:17
 */
public interface ThirdApi {

    /**
     * 发送短信验证码
     * @param params：
     *          phone:手机号
     *          code:登录验证码
     * @return
     */
    @PostMapping("/third/sms/send/code")
    ResponseResult sendCode(@RequestBody Map<String, String> params);

    /**
     * 发送用户密码
     * @param params：
     *          phone:手机号
     *          pass:密码
     * @return
     */
    @PostMapping("/third/sms/send/pass")
    ResponseResult sendPass(@RequestBody Map<String, String> params);

    /**
     * 发送失败原因
     * @param params：
     *          phone:手机号
     *          reason:失败原因
     * @return
     */
    @PostMapping("/third/sms/send/deny")
    ResponseResult sendDeny(@RequestBody Map<String, String> params);
}
